public class Test {
    public static void main(String[] args) {
        System.out.println("====服务员====");
        Waiter waiter = new Waiter("jack","服务员",100,12);
        System.out.println(waiter.print());
        System.out.println("====农民====");
        peasant peasant = new peasant("smith","农民",150,12);
        System.out.println(peasant.print());
        System.out.println("====工人====");
        Worker worker = new Worker("tom","工人",200,12);
        System.out.println(worker.print());
        System.out.println("====老师====");
        Teacher teacher = new Teacher("john","老师",100,40,30,12);
        System.out.println(teacher.print());
        System.out.println("====科学家====");
        Scientist scientist = new Scientist("joe","科学家",300,30000,15);
        System.out.println(scientist.print());
    }
}
